package entitys;

import java.io.Serializable;
import java.sql.Date;

public class Customer extends Human implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	boolean permit;
	Date lastAddressed;
	int significance;
	int interestLevel;
	public Customer(String fname,String lname,String address,String phone, String email,String id, boolean permit, String birth)
	{
		super(fname,lname,address,phone,email,id,birth);
		this.permit = permit;
	}
	public Customer(String id, boolean permission) {
		super("","","","","",id,"");
		this.permit = permission;
	}
	public Customer(String id, int s, int i) {
		super("","","","","",id,"");
		this.significance = s;
		this.interestLevel = i;
	}
	public boolean getPermit() {
		return permit;
	}
	public void setPermit(boolean permit) {
		this.permit = permit;
	}
	public Date getLastAddressed() {
		return lastAddressed;
	}
	public void setLastAddressed(Date lastAddressed) {
		this.lastAddressed = lastAddressed;
	}
	public int getSignificance() {
		return significance;
	}
	public void setSignificance(int significance) {
		this.significance = significance;
	}
	public int getInterestLevel() {
		return interestLevel;
	}
	public void setInterestLevel(int interestLevel) {
		this.interestLevel = interestLevel;
	}
	
	public String toString()
	{
		return "#"+getId()+" "+getFirstName()+" "+getLastName();
	}
	
	public String toStringSeg()
	{
		return "Customer ID:#"+getId()+"     Significance="+getSignificance();
	}
	
}
